
#ifndef __UTIL_H
#define __UTIL_H

#include "vector4.h"
#include "particle.h"
#include "body.h"
class Util
{
public:
	static bool Util::segmentPlaneCollision( Vector4 *segmentP1, Vector4 *segmentP2,
								Vector4 *planeP1, Vector4 *planeN, Vector4 *i);
	static Vector4 getNormal(Vector4 *A, Vector4 *B, Vector4 *C);
	static float CalcAngleSum(Vector4 *point,Vector4 **vertices,int n);
	static bool doesParticleIntersectBox(Particle *point, Body *b);
};

#endif //__UTIL_H
